﻿using DevExpress.ExpressApp.DC;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;

namespace HC.XAP.FileUpload.Module.BusinessObjects.FileUpload
{
    [DomainComponent]
    [XafDisplayName("批量上传文件")]
    public class UploadFileParameters : NonPersistentObjectImpl
    {
        private string _dxBatchFileUpload;
        [EditorAlias("DxBatchUploadEditor")]
        [ExpandObjectMembers(ExpandObjectMembers.Never)]
        [XafDisplayName("批量上传")]
        public string dxBatchFileUpload
        {
            get { return _dxBatchFileUpload; }
            set { SetPropertyValue(ref _dxBatchFileUpload, value); }
        }
        [Browsable(false)]
        public List<DxUploadFileInfo> FileStreams { get; set; } = new List<DxUploadFileInfo>();
    }
    public record DxUploadFileInfo(string FileName,decimal FileSize, MemoryStream FileStream);
}
